using System;
namespace MicroMsg.Network
{
	public class AccountInfo
	{
		private const int INVALID_UIN = -2;
		private string mUserName;
		private string mPassword;
		private string mPassword2;
		private byte[] mCookie;
		private int mUIN;
		private int mBindUIN;
		private string mNickName;
		public AccountInfo()
		{
			this.reset();
		}
		public void reset()
		{
			this.mUserName = null;
			this.mPassword = null;
			this.mPassword2 = null;
			this.mCookie = new byte[0];
			this.mUIN = -2;
		}
		public void setAuthInfo(string username, string password, string password2)
		{
			this.mUserName = username;
			this.mPassword = password;
			this.mPassword2 = password2;
		}
		public string getUsername()
		{
			return this.mUserName;
		}
		public void setUsername(string name)
		{
			this.mUserName = name;
		}
		public string getNickname()
		{
			return this.mNickName;
		}
		public void setNickname(string name)
		{
			this.mNickName = name;
		}
		public bool isValid()
		{
			return this.mUserName != null && this.mUserName.get_Length() != 0 && this.mUIN != -2;
		}
		public string getPassword()
		{
			return this.mPassword;
		}
		public void setPassword(string string_0)
		{
			this.mPassword = string_0;
		}
		public string getPassword2()
		{
			return this.mPassword2;
		}
		public void setPassword2(string string_0)
		{
			this.mPassword2 = string_0;
		}
		public byte[] getCookie()
		{
			return this.mCookie;
		}
		public void setCookie(byte[] cookie)
		{
			this.mCookie = cookie;
		}
		public int getUin()
		{
			return this.mUIN;
		}
		public void setUin(int int_0)
		{
			this.mUIN = int_0;
		}
		public int getBindUin()
		{
			return this.mBindUIN;
		}
		public void setBindUin(int int_0)
		{
			this.mBindUIN = int_0;
		}
	}
}
